package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.MstCmorder;
import com.dingreading.cloud.soms.entity.table.MstCmorderTableDef;
import com.dingreading.cloud.soms.mapper.MstCmorderMapper;
import com.dingreading.cloud.soms.service.MstCmorderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Service
public class MstCmorderServiceImpl extends BaseServiceImpl<MstCmorderMapper, MstCmorder, MstCmorderTableDef> implements MstCmorderService {


    @Override
    protected MstCmorderTableDef getTable() {
        return MstCmorderTableDef.mstCmorder;
    }

    @Override
    public List<MstCmorder> listByStoreUid(String storeUid) {
        return getMapper().selectListByCondition(table.storeUid.eq(storeUid));
    }
}
